package com.petdog.module.community.dto;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 帖子列表响应类
 */
@Data
public class PostListResponse {
    private Long postId; // 帖子ID
    private Long userId; // 用户ID
    private Long communityId; // 社区ID
    private String title; // 标题
    private String content; // 内容摘要
    private String firstImageUrl; // 第一张图片URL
    private Integer likesCount; // 点赞数
    private Integer commentsCount; // 评论数
    private Integer viewsCount; // 浏览数
    private String tags; // 标签(逗号分隔)
    private LocalDateTime createTime; // 创建时间
    
    // 手动添加getter/setter方法
    public Long getPostId() {
        return postId;
    }
    
    public void setPostId(Long postId) {
        this.postId = postId;
    }
    
    public Long getUserId() {
        return userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    public Long getCommunityId() {
        return communityId;
    }
    
    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    public String getFirstImageUrl() {
        return firstImageUrl;
    }
    
    public void setFirstImageUrl(String firstImageUrl) {
        this.firstImageUrl = firstImageUrl;
    }
    
    public Integer getLikesCount() {
        return likesCount;
    }
    
    public void setLikesCount(Integer likesCount) {
        this.likesCount = likesCount;
    }
    
    public Integer getCommentsCount() {
        return commentsCount;
    }
    
    public void setCommentsCount(Integer commentsCount) {
        this.commentsCount = commentsCount;
    }
    
    public Integer getViewsCount() {
        return viewsCount;
    }
    
    public void setViewsCount(Integer viewsCount) {
        this.viewsCount = viewsCount;
    }
    
    public String getTags() {
        return tags;
    }
    
    public void setTags(String tags) {
        this.tags = tags;
    }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}